package com.yckj.day03;

/**
 * TODO  break跳出多层循环
 *
 * @author shengyuee
 * @version 1.0
 * 2025/7/18 14:34
 */
public class BreakDemo2 {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            a: for (int j = 0; j < 6; j++) {
                for (int k = 0; k < 5; k++) {
                    System.out.println(i+","+j+","+k);
                    if(j == 3){
                        break a; // 跳出到标签为a开始循环
                    }
                }
            }
        }
    }
}
